package edu.zk.web.service;

import java.util.List;
import java.util.Map;

import edu.zk.web.dao.ArticleJdbcDaoImpl;
import edu.zk.web.dao.iface.ArticleDao;
import edu.zk.web.domain.Article;
import edu.zk.web.service.iface.ArticleService;



public class ArticleServiceImpl implements ArticleService{
	
	private ArticleDao articleDao=new ArticleJdbcDaoImpl();
	@Override
	public List<Article> getArticle(String typeId) {
		return articleDao.getArticleByType(Integer.valueOf(typeId));
	}
	@Override
	public List<Map<String, Object>> getArticleMap(String typeId) {
		List<Map<String, Object>> list=articleDao.getArticleMapByType(Integer.valueOf(typeId));
		return list;
	}

}
